<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>验证用户名与密码</title>
</head>
<body>
       <script>
           var usernmae =  window.prompt("请输入账号");
           var password =  window.prompt("请输入密码");
             var i = 1; fgfg
           if(usernmae=="admin")
            {
               i++;
            }     
           if(password=="123456")
           {
                   i++;
           }
           if(i==3)
           {
               alert("登陆成功")
           }

       </script>
</body>
</html>